import 'package:dailoz/generated/json/base/json_convert_content.dart';
import 'package:dailoz/entity/task_statistic_entity.dart';

TaskStatisticEntity $TaskStatisticEntityFromJson(Map<String, dynamic> json) {
  final TaskStatisticEntity taskStatisticEntity = TaskStatisticEntity();
  final String? type = jsonConvert.convert<String>(json['type']);
  if (type != null) {
    taskStatisticEntity.type = type;
  }
  final double? jan = jsonConvert.convert<double>(json['jan']);
  if (jan != null) {
    taskStatisticEntity.jan = jan;
  }
  final double? feb = jsonConvert.convert<double>(json['feb']);
  if (feb != null) {
    taskStatisticEntity.feb = feb;
  }
  final double? mar = jsonConvert.convert<double>(json['mar']);
  if (mar != null) {
    taskStatisticEntity.mar = mar;
  }
  final double? apr = jsonConvert.convert<double>(json['apr']);
  if (apr != null) {
    taskStatisticEntity.apr = apr;
  }
  final double? may = jsonConvert.convert<double>(json['may']);
  if (may != null) {
    taskStatisticEntity.may = may;
  }
  final double? jun = jsonConvert.convert<double>(json['jun']);
  if (jun != null) {
    taskStatisticEntity.jun = jun;
  }
  final double? jul = jsonConvert.convert<double>(json['jul']);
  if (jul != null) {
    taskStatisticEntity.jul = jul;
  }
  final double? aug = jsonConvert.convert<double>(json['aug']);
  if (aug != null) {
    taskStatisticEntity.aug = aug;
  }
  final double? sep = jsonConvert.convert<double>(json['sep']);
  if (sep != null) {
    taskStatisticEntity.sep = sep;
  }
  final double? oct = jsonConvert.convert<double>(json['oct']);
  if (oct != null) {
    taskStatisticEntity.oct = oct;
  }
  final double? nov = jsonConvert.convert<double>(json['nov']);
  if (nov != null) {
    taskStatisticEntity.nov = nov;
  }
  final double? dece = jsonConvert.convert<double>(json['dece']);
  if (dece != null) {
    taskStatisticEntity.dece = dece;
  }
  return taskStatisticEntity;
}

Map<String, dynamic> $TaskStatisticEntityToJson(TaskStatisticEntity entity) {
  final Map<String, dynamic> data = <String, dynamic>{};
  data['type'] = entity.type;
  data['jan'] = entity.jan;
  data['feb'] = entity.feb;
  data['mar'] = entity.mar;
  data['apr'] = entity.apr;
  data['may'] = entity.may;
  data['jun'] = entity.jun;
  data['jul'] = entity.jul;
  data['aug'] = entity.aug;
  data['sep'] = entity.sep;
  data['oct'] = entity.oct;
  data['nov'] = entity.nov;
  data['dece'] = entity.dece;
  return data;
}
